package cn.minhx.lab.design_patterns.factory_method.f1;

/**
 * @author merrick.peng
 */
public abstract class Dialog {

    protected abstract Button createButton();

    public void render() {
        Button button = createButton();
        button.onClick();
        button.render();
    }

}
